{extend name="index/index" /}
{block name='main'}


	<div style='width: 900px;padding:40px 40px 160px 40px;margin: auto; background-color:#eee'>
		<h3>个人设置</h3>
		<form action="{:url('index/user/update')}" style='width: 480px' name="form1" method="post" enctype="multipart/form-data">
			<div style='width:150px;height: 175px;float: right;'>
			    {if empty($data['icon'])}
			    <img src="__IMG__/1.jpg" style="width: 150px;height: 160px">
			    {else}
			    <img src="__UPLOAD__{$data.icon}" style="width: 150px;height: 160px">
			    {/if}
				<div style='text-align: center;background-color:#abcabc;height:25px;margin-top: 30px'>
				
				   <input type="file" class="file" name="image" style="width: 150px"><br/>

		
			
				</div>
			</div>
			昵称: 
			<input type="text" name="name" value="{$data['name']}" style='margin:0 20px 20px 20px;width: 250px'><br>
			介绍: 
			<textarea  name="introduce" id="" cols="30" rows="10" maxlength='140' style=' vertical-align:text-top;margin:0 20px 20px 20px;resize:none;width: 250px;height: 130px'>{$data['introduce']}</textarea><br>
			性别: 
			<label for="man" style='margin:0 0 20px 20px;'>
				<input type="radio" name='sex' value="0" {if $data.sex==0} checked {/if}>男
			</label> 
			<label for="woman">
				<input type="radio" name='sex' value="1" {if $data.sex==1} checked {/if}>女
			</label> 
			<label for="secrecy">
				<input type="radio" name='sex' value="2" {if $data.sex==2} checked {/if}>保密
			</label> 
			<br>
			生日:
	


				<select name="year" id="selYear"></select>年
				<select name="month" id="selMonth"></select>月
				<select name="day" id="selDay"></select>日

				<script type="text/javascript">
					var selYear = window.document.getElementById("selYear");
					var selMonth = window.document.getElementById("selMonth");
					var selDay = window.document.getElementById("selDay");
					new DateSelector(selYear, selMonth, selDay, 1995, 1, 17);
				</script>
            <br>
			<br>

			地区:
			<br>

			<script language="javascript" src="__JS__/city.js"></script>
	
				<table  name="" width=300  border=0 cellspacing="0" cellpadding="1" !bgcolor=#FFFDE6>
				<tr>
				<td class="black_con9" align="right">省份：</td>
				<td class="black_con9">
				<select id="s_province" name="s_province"></select> 

				</td>
				<td class="black_con9" align="right">县/市：</td>
				<td class="black_con9">
				<select id="s_city" name="s_city" ></select> 

				</td>
				</tr>
			
				</table>
		
				 <script type="text/javascript">_init_area();</script>

			<br>
			<button class="btn btn-primary" style='margin-left: 50px'>保存</button>
		
		</form>
	</div>
{/block}